class Car:
    # wheels = 4
    def drive(self,speed):
        self.wheels = 4
        print(f"driving{speed}")


    @classmethod
    def stop(cls):
        print("stop")
    @staticmethod
    def test():
        print("test")

car1 = Car()
car1.drive(100)
print(car1.wheels)  ## 通过对象调
# print(Car.wheels) ## 类属性


car1.color = "red"
print(car1.color)

print(car1.test)
print(car1.stop)